﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 众包仓库信息
    /// </summary>
    /// 
    public class PL_FeederDTO
    {
        public int code { get; set; }
        public string message { get; set; }
        public PL_Feeder data { get; set; }


    }

    public class PL_Feeder
    {
        /// <summary>
        /// 
        /// </summary>
        public string ID { get; set; }
        public string RowId { get; set; }


        /// <summary>
        /// 客户单号
        /// </summary>
        public string enterprise_order_no { get; set; }
        /// <summary>
        /// 预计到达日期
        /// </summary>
        public string plan_arrival_date { get; set; }
        /// <summary>
        /// 仓库确认到货时间
        /// </summary>
        public string confirm_date { get; set; }
        /// <summary>
        /// 头程运输方式
        /// </summary>
        private string first_shipping_type_;
        public string first_shipping_type
        {
            get { return first_shipping_type_; }
            set
            {
                if (value == "SEA") first_shipping_type_ = "海运";
                else if (value == "AIR") first_shipping_type_ = "空运";
                else if (value == "TRAIN") first_shipping_type_ = "陆运";
                else if (value == "EXPRESS") first_shipping_type_ = "快递";
                else first_shipping_type_ = value;
            }

        }
        /// <summary>
        /// 追踪号
        /// </summary>
        public string tracking_no { get; set; }
        /// <summary>
        /// 集装箱号
        /// </summary>
        public string container_no { get; set; }
        /// <summary>
        /// 封号
        /// </summary>
        public string seal_no { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string note { get; set; }
        /// <summary>
        /// 仓库取消备注
        /// </summary>
        public string wms_cancel_note { get; set; }
        /// <summary>
        /// 客户取消备注
        /// </summary>
        public string enterprise_cancel_note { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>
        public string status_;
        public string status
        {
            get { return status_; }
            set
            {
                if (value == "FINISHED") status_ = "已完成";
                else if (value == "RECEIVED") status_ = "已收货";
                else if (value == "SEND_OUT") status_ = "已发出";
                else if (value == "PUBLISHED") status_ = "已发布";
                else status_ = value;
            }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public string create_time { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public string update_time { get; set; }
        /// <summary>
        /// 头程单明细
        /// </summary>
        public List<Item_Llist> item_list { get; set; }

        /// <summary>
        /// 箱号
        /// </summary>
        public string item_list_box_no { get; set; }
        /// <summary>
        /// SKU代码
        /// </summary>
        public string item_list_sku { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public string item_list_quantity { get; set; }
        /// <summary>
        /// 箱长
        /// </summary>
        public string item_list_length { get; set; }
        /// <summary>
        /// 箱宽
        /// </summary>
        public string item_list_width { get; set; }
        /// <summary>
        /// 箱高
        /// </summary>
        public string item_list_height { get; set; }
        /// <summary>
        /// 箱重
        /// </summary>
        public string item_list_weight { get; set; }
        /// <summary>
        /// 上架数量
        /// </summary>
        public string item_list_put_on_quantity { get; set; }
        /// <summary>
        /// 收货数量
        /// </summary>
        public string item_list_receipt_quantity { get; set; }
        /// <summary>
        /// 箱号条码
        /// </summary>
        public string item_list_box_barcode { get; set; }
        public class Item_Llist
        {
            /// <summary>
            /// 箱号
            /// </summary>
            public string box_no { get; set; }
            /// <summary>
            /// SKU代码
            /// </summary>
            public string sku { get; set; }
            /// <summary>
            /// 数量
            /// </summary>
            public string quantity { get; set; }
            /// <summary>
            /// 箱长
            /// </summary>
            public string length { get; set; }
            /// <summary>
            /// 箱宽
            /// </summary>
            public string width { get; set; }
            /// <summary>
            /// 箱高
            /// </summary>
            public string height { get; set; }
            /// <summary>
            /// 箱重
            /// </summary>
            public string weight { get; set; }
            /// <summary>
            /// 上架数量
            /// </summary>
            public string put_on_quantity { get; set; }
            /// <summary>
            /// 收货数量
            /// </summary>
            public string receipt_quantity { get; set; }
            /// <summary>
            /// 箱号条码
            /// </summary>
            public string box_barcode { get; set; }

        }

    }

}
